package top.jle.wx.proxy.constant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

public interface ToolOption {

    int TEMP_QR_EXPIRE_SECONDS_LIMIT = 2592000;

    int TEMP_QR_EXPIRE_SECONDS_DEFAULT = 30;

    String ACTION_LIMIT_QR = "QR_LIMIT_SCENE";
    String ACTION_LIMIT_STR_QR = "QR_LIMIT_STR_SCENE";
    String ACTION_QR = "QR_SCENE";
    String ACTION_STR_QR = "QR_STR_SCENE";
    @Schema(title="生成二维码接口返回结果")
    @Getter
    @Setter
    class QRCodeResponse{
        @Schema(title="获取二维码的TICKET",description = "获取连接：https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET")
        private String ticket;
        @Schema(title="临时二维码有效时间（秒）")
        private Integer expire_seconds;
        @Schema(title="二维码解析后的URL，可根据该地址自行生成需要的二维码图片")
        private String url;
    }
}
